﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using LensflareAIContest;

namespace LensflareAIContest {
    public class AIChicken : AI {
        public override void TimeElapsed(float secondsSinceLastTick, float secondsTotal) {
            //Oh, it's time to run!
        }

        public override Vector2 ThrustForUnit(int index) {
            //all units run in random directions:
            Random random = new Random();
            return new Vector2((float)random.NextDouble() * 2.0f - 1.0f, (float)random.NextDouble() * 2.0f - 1.0f);
        }

        public override Vector2? PreparedShotForUnit(int index) {
            //chicken run (don't shoot):
            return null;
        }

        public override String GetName() {
            return "Chicken 1.0";
        }
    }
}
